package com.tjbknb.ecui;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Toast;



public class settings extends Activity {
	
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.settings);

		final RadioButton radioLight = (RadioButton) findViewById(R.id.rdoLight);
		final RadioButton radioModerate = (RadioButton) findViewById(R.id.rdoModerate);
		final RadioButton radioAggressive = (RadioButton) findViewById(R.id.rdoAggressive);

		radioLight.setOnClickListener(radio_listener);
		radioModerate.setOnClickListener(radio_listener);
		radioAggressive.setOnClickListener(radio_listener);
	}

	OnClickListener radio_listener = new OnClickListener() {
		public void onClick(View v) {
			// Perform action on clicks
			RadioButton rb = (RadioButton) v;
			ECUIService.setMode((String) rb.getText());
		}
	};
	
}